package com.flong.jxl.fl;
import java.io.File;
import java.net.URL;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import com.flong.common.IoUtil;

import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;

public class ReadExcelInfo {
	public static void main(String[] args)throws Exception { 
		

		
		String path = "d://data/律师网分类问题数据.xls";
		
		Workbook book = Workbook.getWorkbook(new File(path));
		Sheet sheet = book.getSheet(12);
		int rows = sheet.getRows();
		
		
		 String content ="";
		for (int i = 1; i <rows; i++) {
			String text = sheet.getCell(0, i).getContents().trim().replace("", "");
			if(text!=null && !"".equals(text)){ 
				
				String[] split = text.split("=");
				content +=split[0]+"\n";
				
				/*if(split[1]!=null && split[1]!=""){
					String dq = split[1];
					System.out.println(dq);
					
				}
				//System.out.println(wt);
*/				
			}
		}
		
		 //System.out.println(content);
		
		 IoUtil.Writer(content, "D://data/qt.txt");
		 System.out.println("处理OK");
		 System.exit(-1);
		book.close();
	
	}
		 
}